const Store = require('electron-store');
const store = new Store();

let defaultSettings = {
  //内网穿透配置
  netSettings: {
    //自动启动
    autoStart: 0,
  },
  //标签
  tagSettings: {
    //自动打开，程序启动则自动打开
    autoOpen: 1,
    //贴边隐藏
    autoHide: 1,
    //显示事件, default: 默认移入显示， click: 单击显示
    showEvent: 'click',
    //
  },
  sysSettings: {
    functions: ['netSettings', 'tagSettings']
  },
}

export function getSettings () {
  let settings = store.get('settings')
  if(!settings){
    settings = defaultSettings
  }
  if(settings.autoStart==1){
    // sh.start()
  }
}

